<? if (!empty($lastestPages)): ?>
	<table id="lastestPages">
		<tr>
			<td></td>
			<td><div id="lastestPagesUlCaption"><?=empty($caption)?'Последние новости':$caption?></div></td>
		</tr>
	<? foreach ($lastestPages as $page): ?>
		<tr>
			<td class="lastestPagesImgTD">
			<? if ($page->pImg):?>
				<a href="/<?=$page->blogUrl?>/<?=$page->pUrl?>">
					<img src="/uploads/articles/<?=$page->id?>/thumb30/<?=$page->pImg?>" height="30">
				</a>
			<? endif;?>
			</td>
			<td>
				<a href="/<?=$page->blogUrl?>/<?=$page->pUrl?>"><?=$page->pName?></a>
			</td>
		</tr>
	<? endforeach; ?>
	</table>
<? endif;?>